function doQuest(studyId, questId) {
	var targetPage = "New.Answer";
	location.href = targetPage + "?studyId=" + studyId + "&questId=" + questId;
}

function checkDoQuestInput() {
	var content = document.getElementById("content").value;
	var msg = document.getElementById("message");
	if(content == "") {
		msg.innerHTML = "답변 내용을 입력하세요";
		return;
	}
	else {
		document.doQuestForm.submit();
	}
}



function showAnswer(studyId, questId, ansId) {
	var targetPage = "Info.Answer";
	location.href = targetPage + "?studyId=" + studyId + "&questId=" + questId + "&answerId=" + ansId;
}
function makeAnswer() {
	var content = document.getElementById("content").value;
	var msg = document.getElementById("message");
	if(content == "") {
		msg.innerHTML = "내용을 입력하세요";
		return;
	}
	else 
		document.doQuestForm.submit();
}
function makeFeedBack(studyId, questId, ansId) {
	targetPage = "NewFeedBack.Answer";
	location.href = targetPage + "?studyId=" + studyId + "&questId=" + questId + "&answerId=" + ansId;
}
function doFeedBack() {
	var content = document.getElementById("content").value;
	var msg = document.getElementById("message")
	if(content =="") {
		msg.innerHTML = "내용을 입력하세요";
		return;
	}
	else {
		document.feedBackForm.submit();
	}
}